package com.pds.web.category.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pds.web.category.entity.PdsCategory;
import com.pds.web.category.vo.CategoryStandardVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 检测项目类别表
 *
 * @author srf sunlightcs@gmail.com
 * @since 1.0.0 2024-02-29
 */
@Mapper
public interface PdsCategoryMapper extends BaseMapper<PdsCategory> {

    /**
     * 查询检测项目类别列表
     * @param pdsCategory
     * @return
     */
    List<CategoryStandardVO> selectList(PdsCategory pdsCategory);

    /**
     * 查询企业的检测范围
     * @param organizationId 机构id
     * @return
     */
    String selectListByOrganizationId(String organizationId);

    /**
     * 查询当前登录用户检测机构的检测因子
     * @param organizationId
     * @return
     */
    List<CategoryStandardVO> getOrganizationCategory(Long organizationId);
}
